FROM python:3.7
RUN pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/\
    && pip config set install.trusted-host mirrors.aliyun.com\
    && pip install PyMySQL==0.9.1 asyncio aiomysql aioredis sanic requests redis

EXPOSE 8000

CMD cd /var/www\
    && python main.py

#add_product_api